
package com.jml;

import com.jml.config.DBConfig1;
import com.jml.config.DBConfig2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableCaching
@EnableAsync
//表示启动的时候读取DBConfig的信息，以方便注入进去TestMyBatisConfig2
@EnableConfigurationProperties(value = { DBConfig1.class, DBConfig2.class })
@EntityScan(basePackages = "com.jml.entity")
@EnableJpaRepositories(basePackages = "com.jml.dao")
@SpringBootApplication
public class StartSpringBoot {

	public static void main(String[] args) {
		SpringApplication.run(StartSpringBoot.class, args);
	}

}
